package com.CNMedical.system.mapper;

import java.util.List;

import com.diboot.core.mapper.BaseCrudMapper;
import com.CNMedical.system.domain.entity.AppletQuestionAnswer;

/**
 * 试题-答案关联Mapper接口
 * 
 * @author tang
 * @date 2023-03-28
 */
public interface AppletQuestionAnswerMapper extends BaseCrudMapper<AppletQuestionAnswer>
{
    /**
     * 查询试题-答案关联
     * 
     * @param id 试题-答案关联主键
     * @return 试题-答案关联
     */
    public AppletQuestionAnswer selectAppletQuestionAnswerById(Long id);

    /**
     * 查询试题-答案关联列表
     * 
     * @param appletQuestionAnswer 试题-答案关联
     * @return 试题-答案关联集合
     */
    public List<AppletQuestionAnswer> selectAppletQuestionAnswerList(AppletQuestionAnswer appletQuestionAnswer);

    /**
     * 新增试题-答案关联
     * 
     * @param appletQuestionAnswer 试题-答案关联
     * @return 结果
     */
    public int insertAppletQuestionAnswer(AppletQuestionAnswer appletQuestionAnswer);

    /**
     * 修改试题-答案关联
     * 
     * @param appletQuestionAnswer 试题-答案关联
     * @return 结果
     */
    public int updateAppletQuestionAnswer(AppletQuestionAnswer appletQuestionAnswer);

    /**
     * 删除试题-答案关联
     * 
     * @param id 试题-答案关联主键
     * @return 结果
     */
    public int deleteAppletQuestionAnswerById(Long id);

    /**
     * 批量删除试题-答案关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppletQuestionAnswerByIds(Long[] ids);
}
